﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<AutomationHost.TestCase>" %>
<style type="text/css">
.action
{
    font-size: 14px;
}

.actionname
{
    color: #333;
    font-weight: bold;
}

.actionname
{
    color: Red;
}
</style>
<h5>Basic Information</h5>
<table width="100%">
<tr>
<td>Name</td>
<td>Description</td>
<td>Owner</td>
</tr>
<tr>
<td><%=Model.Name %></td>
<td><%=Model.Description %></td>
<td><%=Model.Owner %></td>
</tr>
</table>
<h5>Test Case Steps</h5>
<table width="100%">
<tr>
<td>Step</td>
<td>Action</td>
<td>Description</td>
</tr>
<%int i = 1;
    foreach(var a in Model.ActionInstances){ %>
<tr class="action">
<td class="step">Step <%=i.ToString() %>: </td>
<td><span class="actionname"><%=a.Name %></span>(<span class="actionparams"><%=a.Params %></span>)</td>
<td><%=a.Description %></td>
</tr>
<%i++;
    } %>
</table>

<hr />
<input type="button" value="Edit" />
<input type="button" value="Delete" />